package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void addRole(Role role, Integer[] menuIds, Integer[] permissionIds);

    Role getRole(Integer id);

    void updateRole(Role role, Integer[] menuIds, Integer[] permissionIds);

    void deleteRole(Integer id);
}
